
import service from '@/utils/request'
import req from '../req';
import tool from '@/utils/tool';

// 获取区域列表
export function RegionList(data) {
    var a = {
        client_id: 1,
        api_token: req('Region/List'),
        token:tool.data.get("TOKEN")
    }
    return service({
        url: 'Region/List',
        method: 'post',
        data: { ...data, ...a }
    });
}

// 区域删除
export function RegionDelete(data) {
    var a = {
        client_id: 1,
        api_token: req('Region/Delete'),
        token:tool.data.get("TOKEN")
    }
    return service({
        url: 'Region/Delete',
        method: 'post',
        data: { ...data, ...a }
    });
}

// 区域增加
export function RegionAdd(data) {
    var a = {
        client_id: 1,
        api_token: req('Region/Add'),
        token:tool.data.get("TOKEN")
    }
    return service({
        url: 'Region/Add',
        method: 'post',
        data: { ...data, ...a }
    });
}

// 区域修改
export function RegionEdit(data) {
    var a = {
        client_id: 1,
        api_token: req('Region/Edit'),
        token:tool.data.get("TOKEN")
    }
    return service({
        url: 'Region/Edit',
        method: 'post',
        data: { ...data, ...a }
    });
}